home *** CD-ROM | disk | FTP | other *** search
- ##
- ## This make file controls the building of the any model library for
- ## the CDROM routines.
- ##
- ## To build a LARGE model, "nmake S=L M=4"
- ## To build a COMPACT model, "nmake S=C M=3"
- ## To build a MEDIUM model, "nmake S=M M=2"
- ## To build a SMALL model, "nmake S=S M=1"
- ## To build a TINY model, "nmake S=T M=0"
- ##
- ## The default is to build a small model.
-
- !ifndef S
- S= s
- !endif
- !ifndef S
- M= 1
- !endif
-
- #############################################################################
-
- ## The following are command line options compiler, assembler selection
-
- !ifdef BCC
-
- ## tools selection
-
- MA= tasm /JQUIRKS /JMASM51 /JNOSMART /m2
- CL= bcc /I$(CINC)
- LK= tlink
- LB= tlib
-
- ## switches
-
- MM= /mx
- MZ= # /zi
- CZ= # -v
- CO= # -Od
- CMOD= -m$(S)
- ONAM= -o
-
- !else
-
- ## tools selection
-
- MA= masm
- CL= cl
- LK= link
- LB= lib
-
- ## switches
-
- MM= /Mx
- MZ= # /Zi
- CZ= -Zp # -Zi
- CO= # -Od
- CMOD=-A$(S)
- ONAM= -Fo
-
- !endif
-
- ## The following are command line options for the librarian
-
- LIBDIR= ..\..\inc
-
- #############################################################################
-
- ## The default is to build the model-specific library, and is included
- ## for compatibility for the "make" program (this is an "nmake" file).
-
- !ifdef BCC
- default: $(LIBDIR)\bv$(S)lib.lib
- !else
- default: $(LIBDIR)\mv$(S)lib.lib
- !endif
-
- ## The following are the command lines to build each module.
- ## The output file is named according to the model, the first letter
- ## of the name representing the model (L, C, M, S, T)
-
- $(S)mscdex.obj: mscdex.asm
- $(MA) $(MM) $(MZ) /DMODELSIZE=$(M) mscdex.asm, $(S)mscdex.obj;
-
- $(S)cdrom.obj: cdrom.c
- $(CL) -c $(CO) $(CZ) $(CMOD) $(ONAM)$(S)cdrom.obj cdrom.c
-
- $(S)cdmas.obj: cdmaster.c
- $(CL) -c $(CO) $(CZ) $(CMOD) $(ONAM)$(S)cdmas.obj cdmaster.c
-
- ## The following are the command lines for the librarian
-
- !ifdef BCC
- $(LIBDIR)\bv$(S)lib.lib: $(S)mscdex.obj $(S)cdrom.obj $(S)cdmas.obj
- $(LB) $(LIBDIR)\bv$(S)lib -+$(S)mscdex.obj
- $(LB) $(LIBDIR)\bv$(S)lib -+$(S)cdrom.obj
- $(LB) $(LIBDIR)\bv$(S)lib -+$(S)cdmas.obj
- !else
- $(LIBDIR)\mv$(S)lib.lib: $(S)mscdex.obj $(S)cdrom.obj $(S)cdmas.obj
- $(LB) $(LIBDIR)\mv$(S)lib -+$(S)mscdex.obj ,,$(LIBDIR)\mv$(S)lib;
- $(LB) $(LIBDIR)\mv$(S)lib -+$(S)cdrom.obj ,,$(LIBDIR)\mv$(S)lib;
- $(LB) $(LIBDIR)\mv$(S)lib -+$(S)cdmas.obj ,,$(LIBDIR)\mv$(S)lib;
- !endif
-
-